<div class="page page5 on">
    <div class="wrap">
        <div class="page_tit3">
            <h2><span>相关产品</span></h2>
            <label></label>
        </div>
        <div class="pro_owl">
            <div class="owl">
                <foreach name="relationProducts" item="vo">
                    <php>$pic = json_decode($vo['smeta'],true);</php>
                <div class="item">
                    <a href="javascript:;" onclick="setContent1('{$vo.title}','{:sp_get_asset_upload_path($pic[\'thumb\'])}',{$vo.id})">
                        <div class="img"><img src="{:sp_get_asset_upload_path($pic['thumb'])}" /></div>
                        <div class="text">{$vo.title}</div>
                    </a>
                    <div style="display: none" id="content_{$vo.id}">
                        {$vo.content}
                    </div>
                </div>
                </foreach>
            </div>
        </div>
        <div class="btn_more"><a href="/product.html">查看更多>></a></div>
    </div>
</div>
<script>
    function setContent1(title,img,id) {
        $("#title").html(title);
        $("#img").attr("src",img);
        var content = $("#content_"+id).html();
        $("#content").html(content);
        $(".modal_pro").stop().fadeIn();
    }
</script>